package com.skywaregroup.arenal;

import java.util.Date;
//import java.util.HashSet;
//import java.util.Set;
//import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
//import javax.persistence.OneToMany;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="vendors_tokens") 
public class VendorToken {
	
	@Id 
	@PrimaryKeyJoinColumn
	@GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name="id") 
	public Integer id;
	
	@Column(name="vendor_id")
	public Integer vendorID;
	
	@Column(name="valid_from")
	public Date validFrom;
	
	@Column(name="valid_to")
	public Date validTo;
	
	@Column(name="token")
	public String token;
	
//	@OneToMany(mappedBy="VendorTokenObject", cascade=CascadeType.ALL, orphanRemoval=true)
//	public Set<PublisherToken> PublisherTokens = new HashSet<PublisherToken>();

	public VendorToken(){}

}
